<template>
  <div class="container">
   bbbbb
   <h1>Nuxt学习体验</h1>
    <audio :src="require('@/assets/1.mp3')" controls></audio>
    <el-button @click="blogin()">登入</el-button>
  </div>
</template>

<script>
import {mapActions} from 'vuex'
export default {
  transition:'test' ,   //定义动画样式名
  head:{                //定制head   
    title:'定制首页',
    meta:[{
        hid: "description",
        name: "description",
        content: "页面描述"
      },
      {
        hid:'keywords',
        name:"keywords",
        content:'关键之'
      }]
  },
  methods:{
    ...mapActions('user',['login']),
    blogin(){
      this.login('小翠')
    }
  }
}
</script>

<style>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family:
    'Quicksand',
    'Source Sans Pro',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
